<template>
	<view class="total-card">
		<navigator class="card-nav">
			<view class="card-data">
				<view class="card-data-head">
					<u--text class="card-title" size='15' lines="1" text="05-18 20.30取件"></u--text>
					<view class="card-data-head-right">
						<u--text class="card-price" mode="price" text="11.5" size='16' bold='true' color='#ff9900' block='true'></u--text>
						<uni-tag text="待接单" :type="'primary'" custom-style="font-size: 11px" circle='true' size="small"/>
					</view>
				</view>	
				<view class="card-data-center">
					<u--text class="card-description" :lines="2" size='12' lineHeight='20px' color='#6a6a6a' text="星期五前到计算机学院办公室取文件送到行政楼2-203，麻烦立即取件，和老师说明是计算机学院文件,若老师不在则取回文件再次送"></u--text>
					<view class="card-addressview">
						<uni-tag text="起点" custom-style="font-size: 11px" type="success" size="mini"/>
						<u--text class="card-address" type="success" text="东莞理工学院莞华社区14栋" :lines="1" size='12'  margin='0 10px' block='true'></u--text>
					</view>
					<view class="card-addressview">
						<uni-tag text="终点" custom-style="font-size: 11px" type="error" size="mini"/>
						<u--text class="card-address" :lines="1" color='#dd6161' text="东莞理工学院图书馆6楼休息区xxx学习的地方的饮水机附近" wordWrap="anywhere" size='12' margin='0 10px' block='true'></u--text>
					</view>
					<slot name="tag" class="card-tag"></slot>
				</view>
				<view class="card-data-bottom">
					<view class="card-data-bottom-tags">
						<uni-tag class="card-data-bottom-tag" custom-style="font-size: 11px" text="帮我买" type="primary"size="mini"/>
						<uni-tag class="card-data-bottom-tag" custom-style="font-size: 11px" text="饮料奶茶" type="primary" inverted='true' size="mini"/>
						<uni-tag class="card-data-bottom-tag" custom-style="font-size: 11px" text="就近购买" type="primary" inverted='true' size="mini"/>
					</view>
					<view><text class="card-data-bottom-createtime">1天2小时前</text></view>	
					<button class="card-data-bottom-button" :disabled="false" type="default" size="mini" button-hover @click="show">接&nbsp&nbsp&nbsp&nbsp单</button>
				</view>
			</view>
		</navigator>
	</view>
</template>

<script>
export default {
	name:"lazyServiceCard",
	data() {
		return {
			
		}
	},
	props:{
		cardData:{
			type: Object,
			default:{}
		}
	},
	methods:{
		show(){
			console.log("按钮点击")
		}
	}
}
</script>

<style lang="scss" scoped>
.card-nav {
	width: calc(100% - 25px) !important;
	height: 185px;
	margin: 10px;
	margin-left: 10px;
	border: 2px solid rgba(108, 92, 92, 0.09);
	background-color: #ffffff;
	box-shadow: 5px 1px 5px 2px rgba(145, 145, 145, 0.19);
	overflow: hidden;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	border-top-right-radius: 20px;
	border-top-left-radius: 20px;
}
.card-data {
	display: flex;
	flex-direction: column;
	padding: 15px;
}
.card-data-head {
	display: flex;
	justify-content: center;
}
// .card-title {
// 	display: -webkit-box;
// 	-webkit-box-orient: vertical;
// 	-webkit-line-clamp: 1;
// 	overflow:hidden;
// 	white-space:nowrap;
// 	word-wrap: break-word;
// 	width: 180px;
// 	margin: 0 20px 2px 0;
// 	font-size: 15px;
// 	font-weight: bold;
// }
.card-data-head-right {
	display: flex;
	width: 120px;
	flex-wrap: nowrap;
	justify-content: space-between;
	margin-right: 10px;
}
.card-price {
	width: 50px;
}
.card-data-center {
	padding-top: 8px;
}
.card-addressview {
	display: flex;
	flex-wrap: nowrap;
	margin: 5px 0;
}
.card-data-bottom {
	display: flex;
	justify-content: space-between;
	padding: 5px 10px 0 0 ;
}
.card-data-bottom-tag {
	margin: 0 2px;
}
.card-data-bottom-createtime {
	font-size: 12px;
	color: #909399;
}
.card-data-bottom-button {
	width: 80px;
	font-size: 12px;
	margin: 0;
	color: #ffffff;
	background-color: #2979ff;
}

</style>